package homework5;

import java.util.ArrayList;
import java.util.Collections;

/**
 * @classname:FootBool
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/14 20:21
 * @version: 0.1
 * @since:1.8
 */
public class FootBool {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,
                "科特迪瓦",
                "阿根廷",
                "澳大利亚",
                "塞尔维亚",
                "荷兰",
                "尼日利亚",
                "日本",
                "美国",
                "中国",
                "新西兰",
                "巴西",
                "比利时",
                "韩国",
                "喀麦隆",
                "洪都拉斯",
                "意大利"
                );
//        System.out.println(list);
        for (int i = 0; i < 4; i++) {
            System.out.print("第"+(i+1)+"组球队为\t");
            for (int i1 = 0; i1 < 4; i1++) {
               int num =  (int)(Math.random()*list.size());
                System.out.print(list.get(num)+"\t\t");
                list.remove(num);
            }
            System.out.println();
        }
    }

}
